package com.bl.weilan.task;

import com.bl.weilan.service.ServiceConfig;
import com.spring4all.swagger.EnableSwagger2Doc;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.Import;

/**
 * Created by liangweikang on 2018/1/21.
 */
@SpringBootApplication(
        scanBasePackages={"com.bl.weilan.task"},
        exclude={DataSourceAutoConfiguration.class,
                HibernateJpaAutoConfiguration.class}
)
@ServletComponentScan
@Import({ServiceConfig.class})
@EnableSwagger2Doc
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}
